using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataModels.Models
{
    [Table("SMSReminderTracker")]
    public partial class SMSReminderTracker
    {
        [Key, Column(Order = 0)]
        [Required]
        [StringLength(50)]
        public string FacCode { get; set; }

        [Key, Column(Order = 1)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Year { get; set; }

        [Key, Column(Order = 2)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Period { get; set; }

        [Key, Column(Order = 3)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int ReportID { get; set; }

        [ForeignKey("FacCode")]
        public virtual Facility Facility { get; set; }

        [ForeignKey("ReportID")]
        public virtual Report Report { get; set; }
    }
}
